[JBoss Seam] - Facelets custom tags for input controls
by gduq
In my view pages the input controls look like this:
| <div class="entry">
| <div class="label"><h:outputLabel for="DateofBirth">Date of Birth:</h:outputLabel></div>
| <div class="input">
| <s:decorate id="DateofBirthDecorator">
| <rich:calendar enableManualInput="true" disabled="#{!HomeFoneNameChange.isNewForm()}" id="DateofBirth" value="#{HomeFoneNameChange.dateofBirth}"
| required="true">
| <a:support event="onblur" reRender="DateofBirthDecorator" />
| </h:inputText>
| </s:decorate></div>
| </div>
|
| <div class="entry">
| <div class="label"><h:outputLabel for="Sex">Sex:</h:outputLabel></div>
| <div class="input"><s:decorate id="SexDecorator">
| <h:inputText size="50" disabled="#{!HomeFoneNameChange.isNewForm()}" id="Sex" value="#{HomeFoneNameChange.sex}"
| required="true">
| <a:support event="onblur" reRender="SexDecorator" />
| </h:inputText>
| </s:decorate></div>
| </div>
|
I feel like there should be a way to cut down on the amount of repeated text using facelets but I'm not sure of the best way to do it.
I'd like to be able to do this:
<my:calendar lable="Date of Birth" bean="HomeFoneNameChange" property="dateOfBirth" />
| <my:inputText lable="Sex:" bean="HomeFoneNameChange" property="sex" />
|
or even better, specify the bean once per page and have:
<my:calendar lable="Date of Birth" property="dateOfBirth" />
| <my:inputText lable="Sex:" property="sex" />
|
is this possible? or if not how close to this can I get?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125876#4125876
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125876
18 years, 2 months
[Installation, Configuration & DEPLOYMENT] - Can't start JBoss 5 Beta3 with a JRE
by javidjamae
>From what I understand JBoss 5 is supposed to be able to start with just a JRE and uses the Eclipse JDT library to do all its dynamic JSP compiling. However, when I try to start the default configuration on Windows using run.bat, or run.sh from Cygwin, I get the following error:
| $ ./run.sh
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: c:\jbia-src\binaries\jboss-5.0.0.Beta3
|
| JAVA: /cygdrive/c/jre1.5.0_07/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcI
| nterval=3600000
|
| CLASSPATH: c:\jbia-src\binaries\jboss-5.0.0.Beta3\bin\run.jar
|
| =========================================================================
|
| Error: no `server' JVM at `c:\jre1.5.0_07\bin\server\jvm.dll'.
|
>From this JIRA issue (http://jira.jboss.org/jira/browse/JBAS-4161), it seems like there should be no complaints when trying to start with a JRE since JBoss 5 Beta 2.
When you comment out the following lines (putting rem in front of the second and third lines) in the run.bat script, the server starts:
| rem Add -server to the JVM options, if supported
| "%JAVA%" -version 2>&1 | findstr /I hotspot > nul
| if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)
|
I'm guessing that this is a bug in the script?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125872#4125872
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125872
18 years, 2 months
[JBoss Seam] - Re: Problem with: seam-gen deploy
by pete007
Hello,
I got the same problem, but I don't understand, how to fix it correctly.
I have three references to the same table (entity) in one table (entity).
create table node ( id bigint not null auto_increment,
| coordinates varchar(9),
| primary key (id) ) ;
|
| create table routing ( id bigint not null auto_increment,
| start_node_id bigint,
| end_node_id bigint,
| next_node_id bigint,
| foreign key (start_node_id) references node(id),
| foreign key (end_node_id) references node(id),
| foreign key (next_node_id) references node(id),
| primary key (id) ) ;
When typing seam explode I get the following error message:
[javac] Compiling 7 source files to ws\p\exploded-archives\h.jar
| [javac] ws\p\src\action\m\a\RoutingHome.java:14: nodeHome is already defined in m.a.RoutingHome
| [javac] NodeHome nodeHome;
| [javac] ^
| [javac] ws\p\src\action\m\a\RoutingHome.java:16: nodeHome is already defined in m.a.RoutingHome
| [javac] NodeHome nodeHome;
| [javac] ^
| [javac] 2 errors
Following the link above, there are many files with patches. Are the patches only for 2 equal references or can I use them too? Which patch-file should I choose and how can I apply it (to which files)?
It would be nice, if someone could give me a short explanation, how to solve my problem.
Thank you in advance, Peter
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125865#4125865
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125865
18 years, 2 months