Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Enabled validation when creating project, version, group
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jun 11, 2013
1 parent b2bf79b commit 9491888
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
Expand Up @@ -10,7 +10,7 @@

<s:token allowMultiplePosts="true" />
<rich:panel>
<s:decorate id="slugField" template="edit.xhtml">
<s:decorate id="slugField" template="edit.xhtml" enclose="true">
<ui:define name="label">#{messages['jsf.ProjectVersionId']}</ui:define>
<h:outputText rendered="#{projectIterationHome.managed}" value="#{projectIterationHome.instance.slug}" />
<h:inputText rendered="#{not projectIterationHome.managed}"
Expand Down
Expand Up @@ -27,10 +27,12 @@
</s:span>
</s:decorate>

<s:decorate id="nameField" template="edit.xhtml">
<s:decorate id="nameField" template="edit.xhtml" enclose="true">
<ui:define name="label">#{messages['jsf.Name']}</ui:define>
<h:inputText id="name" required="true"
value="#{projectHome.instance.name}"/>
value="#{projectHome.instance.name}">
<a4j:ajax event="blur" render="nameField" execute="@this"/>
</h:inputText>
</s:decorate>

<s:decorate id="descriptionField" template="edit.xhtml">
Expand Down
Expand Up @@ -26,10 +26,12 @@
</s:span>
</s:decorate>

<s:decorate id="nameField" template="edit.xhtml">
<s:decorate id="nameField" template="edit.xhtml" enclose="true">
<ui:define name="label">#{messages['jsf.Name']}</ui:define>
<h:inputText id="name" required="true"
value="#{versionGroupHome.instance.name}"/>
value="#{versionGroupHome.instance.name}">
<a4j:ajax event="blur" render="nameField" execute="@this"/>
</h:inputText>
</s:decorate>

<s:decorate id="descriptionField" template="edit.xhtml">
Expand Down

0 comments on commit 9491888

Please sign in to comment.