[JBoss Seam] - Re: Facelets: Parameters to custom tags
by MSchmidke
Hi niesar,
no ... unfortunately not exactly what I want. Perhaps I showed a little too few context of the calling page, sorry.
I want to have a reusable component "kontoname.xhtml" which can be embedded to any other page. This reusable component needs two parameters, konto and liste.
Then I have one calling page which wants to make use of this reusable component. It iterates over some objects:
| <t:dataList var="kontozeile_iter" value="#{leistungsschein.kontozeilen.gefilterteListe}">
| <tr>
| <ui:include src="/komponenten/kontoname.xhtml">
| <ui:param name="konto" value="#{kontozeile_iter}" />
| <ui:param name="liste" value="#{leistungsschein.kontozeilen}" />
| </ui:include>
| </tr>
| </t:dataList>
|
(You see I also tried the "ui:param" syntax, but no success.)
The dataList iterates over something named leistungsschein.kontozeilen.gefilterteListe. This works fine. The current iteration is saved in the variable kontozeile_iter. This works fine. Then the component is called with the two paramers konto (which is actually kontozeile_iter, but inside a reusable method, you don't want to worry about the actual parameter's name) and liste. This even works fine since I can access both parameters, for example using outputText elements.
So the "konto" parameter is somewhere where it can be accessed via EL. But it can't be accessed via injection. So where is it stored?
Once again my reusable component:
| <ui:component xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:t="http://myfaces.apache.org/tomahawk"
| >
|
| <td class="auftragszelle">
| <!-- The following is absolutely perfect! -->
| <h:outputText value="#{konto.name}"></h:outputText>
| </td>
| <ui:repeat value="#{liste.angezeigteSpalten}" var="spalte">
| <td class="auftragszelle">
| <h:outputText value="#{kontoname.wert}" />
| </td>
| </ui:repeat>
| </ui:component>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959147#3959147
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959147
19 years, 9 months
[JBoss Seam] - SEAM and JavaScript
by k0201389
Hi everyone!
I'm having a problem with JavaScript generated popup window. I wonder if anyone here could help me...
With the code like this I can send the parameters to the same window:
<s:link view="/picture_show.xhtml" action="#{pictureSelect.oldPicture}">
<f:param name="id" value="#{picture.id}"/>
</s:link>
But when I'm trying to do the same to the popup window it doesn't send anything:
<s:link action="#{pictureSelect.oldPicture}">
<f:param name="id" value="#{picture.id}"/>
<img src="/kuvapankki/data/#{picture.cameraman}/#{picture.name}" height="150" onclick="window.open('picture_show.seam','exp','width=677,height=500,scrollbars=yes');"/>
</s:link>
Where I'm going wrong here? I really appreciate if someone has time to watch my code!
Thanks in advance!
-Hanna Blåfield-
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959146#3959146
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959146
19 years, 9 months
[Clustering/JBoss] - issue to configure the default database DefaultDS to oracle
by jack0501
I tried to configure the default database DefaultDS to oracle 9i in the clustered environment.
The step I did is in the following:
1. delete the hsqldb.xml.
2. configure DefaultDS datasource to oracle in the oracle-ds.xml
3. change login-config.xml, oracle-jdbc2-service.xml and oracle-jdbc-state-service.xml file to use DefaultDS.
When I start the jboss, the exception occur in the jboss console. When I check the database, I found 5 tables created in order to use the JMS feature, I can not found the HILOSequence table which supposed to create in the database.
I really appreciate some one help.
Thanks.
Jack Tie
The error message is in the following:
--- MBeans waiting for other MBeans ---
ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
State: FAILED
Reason: java.sql.SQLException: ORA-00942: table or view does not exist
I Depend On:
jboss:service=TransactionManager
jboss.jca:name=DefaultDS,service=DataSourceBinding
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
State: FAILED
Reason: java.sql.SQLException: ORA-00942: table or view does not exist
I Depend On:
jboss:service=TransactionManager
jboss.jca:name=DefaultDS,service=DataSourceBinding
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959139#3959139
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959139
19 years, 9 months