"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tapestry-core/src/test/java/org/apache/tapestry5/integration/app1/pages/ClientFormatDemo.java" between
apache-tapestry-5.7.1-sources.zip and apache-tapestry-5.7.2-sources.zip

About: Apache Tapestry is a framework for creating dynamic, robust, highly scalable web applications in Java. Source code.

ClientFormatDemo.java  (apache-tapestry-5.7.1-sources):ClientFormatDemo.java  (apache-tapestry-5.7.2-sources)
skipping to change at line 17 skipping to change at line 17
// http://www.apache.org/licenses/LICENSE-2.0 // http://www.apache.org/licenses/LICENSE-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
package org.apache.tapestry5.integration.app1.pages; package org.apache.tapestry5.integration.app1.pages;
import org.apache.tapestry5.ComponentResources;
import org.apache.tapestry5.annotations.Property; import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.beaneditor.Validate; import org.apache.tapestry5.beaneditor.Validate;
import org.apache.tapestry5.http.Link;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.PageRenderLinkSource;
/** /**
* Demonstrates client-side field format validation. * Demonstrates client-side field format validation.
*/ */
public class ClientFormatDemo public class ClientFormatDemo
{ {
@Property @Property
@Validate("required,min=1") @Validate("required,min=1")
private int quantity; private int quantity;
@Property @Property
@Validate("required,min=0") @Validate("required,min=0")
private float amount; private float amount;
@Inject
private ComponentResources resources;
@Inject
private PageRenderLinkSource pageRenderLinkSource;
public Link getLinkToSamePage() {
return pageRenderLinkSource.createPageRenderLink(ClientFormatDemo.class)
;
}
} }
 End of changes. 4 change blocks. 
0 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)