[JBoss Seam] - Re: Seam saying Datamodel saying row is Unavailable... WHY??
by tony.herstell@gmail.com
The plot thickens..
I now get only one element displayed in the data table and this error:
| 19:31:37,859 ERROR [HtmlTableRendererBase] Row is not available. Rowindex = 1
|
| public void addKeyword() {
| Keyword newKeyword = new Keyword();
| newKeyword.setKeyword(getNewKeyword());
| if (keywordsSet == null) {
| keywordsSet = new LinkedHashSet<Keyword>();
| }
| keywordsSet.add(newKeyword);
| for (Keyword eachKeyword : keywordsSet) {
| log.info(eachKeyword + " " + eachKeyword.hashCode());
| }
| }
|
gives:
| 19:32:31,609 INFO [AdvertisingCampaignControllerImpl] Keyword (Id => null, Version => null, Keyword => a) 97
| 19:32:31,609 INFO [AdvertisingCampaignControllerImpl] Keyword (Id => null, Version => null, Keyword => b) 98
| 19:32:31,609 INFO [AdvertisingCampaignControllerImpl] Keyword (Id => null, Version => null, Keyword => c) 99
| 19:32:31,609 INFO [AdvertisingCampaignControllerImpl] Keyword (Id => null, Version => null, Keyword => d) 100
| 19:32:31,859 ERROR [HtmlTableRendererBase] Row is not available. Rowindex = 1
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039589#4039589
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039589
19 years
[JBoss Seam] - Re: HowTo: When going to a page to enter data, pull from db
by christian.bauer@jboss.com
"CptnKirk" wrote :
| For example I don't think I'd recommend using a Home to populate a search prototype. For search pages, an entity with an event scoped role combined with Hibernate's Criteria API + Example criterion is great.
|
I prefer exactly the opposite, with a Search conversation scoped component that holds my prototype entity during the search conversation. Gives me a lot of control over what the user can select on the search screen and how I handle this in the backend:
| @Name("userSearch")
| @Scope(ScopeType.CONVERSATION)
| public class UserSearch implements Serializable {
|
| @In
| private UserDAO userDAO;
|
| @In
| private FacesMessages facesMessages;
|
| private User exampleUser;
| private String orderByProperty;
| private boolean orderDescending;
| private String[] ignoreProperties;
| private int rowCount;
| private int maxPageSize;
| private int pageSize;
| private int page;
|
| @DataModel
| private List<User> usersList;
|
| @Create
| public void initialize() {
| pageSize = 15;
| maxPageSize = 1000;
| exampleUser = new User();
| orderByProperty = "username";
| orderDescending = false;
| ignoreProperties = new String[]{"passwordHash", "activated", "createdOn"};
| }
|
| public void find() {
| page = 0;
| queryRowCount();
| if (rowCount != 0) queryUsers();
| }
|
| public void nextPage() {
| page++;
| queryUsers();
| }
|
| public void previousPage() {
| page--;
| queryUsers();
| }
|
| public void firstPage() {
| page = 0;
| queryUsers();
| }
|
| public void lastPage() {
| page = (rowCount / pageSize);
| if (rowCount % pageSize == 0) page--;
| queryUsers();
| }
|
| private void queryRowCount() {
| rowCount = userDAO.getRowCountByExample(exampleUser, ignoreProperties);
| if (rowCount == 0) {
| facesMessages.addFromResourceBundleOrDefault(
| FacesMessage.SEVERITY_INFO,
| "noUserFound",
| "No user with given attributes was found, please try again."
| );
| }
| }
|
| private void queryUsers() {
| usersList = userDAO.findByExample(exampleUser, orderByProperty, orderDescending, page * pageSize, pageSize, ignoreProperties);
| }
|
| public boolean isNextPageAvailable() {
| return usersList != null && rowCount > ((page * pageSize) + pageSize);
| }
|
| public boolean isPreviousPageAvailable() {
| return usersList != null && page > 0;
| }
| public int getPageSize() {
| return pageSize;
| }
|
| public void setPageSize(int pageSize) {
| this.pageSize = pageSize > maxPageSize ? maxPageSize : pageSize; // Prevent tampering
| }
|
| public int getRowCount() {
| return rowCount;
| }
|
| public User getExampleUser() {
| return exampleUser;
| }
|
| public void setExampleUser(User exampleUser) {
| this.exampleUser = exampleUser;
| }
|
| public String getOrderByProperty() {
| return orderByProperty;
| }
|
| public boolean isOrderDescending() {
| return orderDescending;
| }
|
| public void sortBy(String propertyName) {
| orderByProperty = propertyName;
| orderDescending = !isOrderDescending(); // Switch between ASC and DESC
| page = 0; // Reset to first page
| queryUsers();
| }
|
| }
|
And the UI is bound to userSearch.exampleUser and the various other properties and methods for pagination etc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039586#4039586
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039586
19 years
[JBoss Seam] - Re: Seam saying Datamodel saying row is Unavailable... WHY??
by tony.herstell@gmail.com
| Caused by: java.lang.IllegalArgumentException: row is unavailable
| at org.jboss.seam.jsf.SetDataModel.getRowData(SetDataModel.java:56)
| at org.jboss.seam.databinding.DataModelBinder.getSelection(DataModelBinder.java:69)
| at org.jboss.seam.databinding.DataModelBinder.getSelection(DataModelBinder.java:19)
| at org.jboss.seam.Component.injectDataModelSelection(Component.java:1274)
| at org.jboss.seam.Component.injectDataModelSelections(Component.java:1254)
| at org.jboss.seam.Component.inject(Component.java:1196)
| at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:63)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.ConversationalInterceptor.aroundInvoke(ConversationalInterceptor.java:89)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
| at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039584#4039584
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039584
19 years
[JBoss Seam] - HELP! get exception when add @Restrict(
by yadong
When I add @Restrict("#(identity.loggedIn)") to an Action (session bean) in class level, it throws exception when it is called.
@Stateful
@Scope(ScopeType.SESSION)
@Name("testAction")
@Restrict("#(identity.loggedIn)")
public class TestAction implements Testing {
...
public String getName(){
return name;
}
}
in JSF page:
<h:inputText id="test" value="#{testAction.name}" />
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at org.jboss.seam.security.Identity.evaluateExpression(Identity.java:507)
at org.jboss.seam.security.Identity.checkRestriction(Identity.java:151)
at org.jboss.seam.interceptors.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:35)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:40)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.interceptors.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:31)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
at org.jboss.seam.intercept.ClientSideInterceptor.intercept(ClientSideInterceptor.java:52)
at org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$c3424f41.getSearchString()
... 58 more
if I remove the @Restrict("#(identity.loggedIn)") , or replace it by:
@Restrict("#{s:hasRole('admin')}")
it is running well without execption
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039583#4039583
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039583
19 years
[EJB/JBoss] - java.lang.ClassCastException
by nsqsmile
Hi ,All
In JSC 2.1 , web call Ejb's method, run fine on sun appserver 8.2,but happend error on jboss 4.0.2,as follows:
==========================================================================================================================
2007-04-11 21:04:12,093 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/yx]] Error Description
java.lang.ClassCastException
at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:229)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
at czqx.menusession.MenuSessionClient.create(MenuSessionClient.java:31)
at czqx.menusession.MenuSessionClient.authPassword(MenuSessionClient.java:45)
at yx.login.loginButton_action(login.java:365)
............................
==========================================================================================================================
xml files in yx.war as follows:
========================================================================
web.xml
<web-app>
......
<ejb-ref>
<ejb-ref-name>ejb/MenuSession</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
czqx.MenuSessionHome
czqx.MenuSession
<ejb-link>CzqxEjb.jar#MenuSession</ejb-link>
</ejb-ref>
<resource-ref>
DataSource
<res-ref-name>jdbc/MSSQLDS</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
========================================================================
sun-web.xml
<sun-web-app error-url="">
......
<ejb-ref>
<ejb-ref-name>ejb/MenuSession</ejb-ref-name>
<jndi-name>corbaname:iiop:localhost:24700#ejb/MenuSession</jndi-name>
</ejb-ref>
<resource-ref>
<res-ref-name>jdbc/MSSQLDS</res-ref-name>
<jndi-name>jdbc/MSSQLDS</jndi-name>
<default-resource-principal>
sa
1234
</default-resource-principal>
</resource-ref>
......
</sun-web-app>
==========================================================================
jboss-web.xml
<jboss-web>
<resource-ref>
<res-ref-name>jdbc/MSSQLDS</res-ref-name>
<jndi-name>jdbc/MSSQLDS</jndi-name>
</resource-ref>
<ejb-ref>
<ejb-ref-name>ejb/MenuSession</ejb-ref-name>
<jndi-name>ejb/MenuSession</jndi-name>
</ejb-ref>
</jboss-web>
==========================================================================
xml files in CzqxEjb.jar as follows:
==========================================================================
ejb-jar.xml
<ejb-jar>
<display-name>CzqxEjb</display-name>
<enterprise-beans>
<ejb-name>Menuinfo</ejb-name>
czqx.MenuinfoRemoteHome
czqx.MenuinfoRemote
<ejb-class>czqx.MenuinfoBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
False
<cmp-version>2.x</cmp-version>
<abstract-schema-name>Menuinfo</abstract-schema-name>
<cmp-field>
<field-name>menuid</field-name>
</cmp-field>
......
</enterprise-beans>
</ejb-jar>
==========================================================================
jboss.xml
<enterprise-beans>
<ejb-name>Menuinfo</ejb-name>
<jndi-name>ejb/Menuinfo</jndi-name>
<ejb-name>MenuSession</ejb-name>
<jndi-name>ejb/MenuSession</jndi-name>
<ejb-name>Operinfo</ejb-name>
<jndi-name>ejb/Operinfo</jndi-name>
<ejb-name>Charcominfo</ejb-name>
<jndi-name>ejb/Charcominfo</jndi-name>
<ejb-name>Roleinfo</ejb-name>
<jndi-name>ejb/Roleinfo</jndi-name>
<ejb-name>Rolerightinfo</ejb-name>
<jndi-name>ejb/Rolerightinfo</jndi-name>
<ejb-name>Copyerinfo</ejb-name>
<jndi-name>ejb/Copyerinfo</jndi-name>
</enterprise-beans>
==========================================================================
sun-ejb-jar.xml
<sun-ejb-jar>
<enterprise-beans>
<ejb-name>Menuinfo</ejb-name>
<jndi-name>ejb/Menuinfo</jndi-name>
<ejb-name>Operinfo</ejb-name>
<jndi-name>ejb/Operinfo</jndi-name>
<ejb-name>Charcominfo</ejb-name>
<jndi-name>ejb/Charcominfo</jndi-name>
<ejb-name>Roleinfo</ejb-name>
<jndi-name>ejb/Roleinfo</jndi-name>
<ejb-name>Rolerightinfo</ejb-name>
<jndi-name>ejb/Rolerightinfo</jndi-name>
<ejb-name>Copyerinfo</ejb-name>
<jndi-name>ejb/Copyerinfo</jndi-name>
<pass-by-reference>false</pass-by-reference>
<ior-security-config>
<transport-config>
SUPPORTED
SUPPORTED
<establish-trust-in-target>SUPPORTED</establish-trust-in-target>
<establish-trust-in-client>SUPPORTED</establish-trust-in-client>
</transport-config>
<as-context>
<auth-method>USERNAME_PASSWORD</auth-method>
default
false
</as-context>
<sas-context>
<caller-propagation>SUPPORTED</caller-propagation>
</sas-context>
</ior-security-config>
<is-read-only-bean>false</is-read-only-bean>
<gen-classes/>
<ejb-name>MenuSession</ejb-name>
<jndi-name>ejb/MenuSession</jndi-name>
<cmp-resource>
<jndi-name>jdbc/MSSQLDS </jndi-name>
<create-tables-at-deploy>false</create-tables-at-deploy>
<drop-tables-at-undeploy>false</drop-tables-at-undeploy>
<database-vendor-name>mssql</database-vendor-name>
<!--<database-vendor-name>pointbase</database-vendor-name>-->
</cmp-resource>
</enterprise-beans>
</sun-ejb-jar>
==========================================================================
i can't find the question by as follows link
http://forum.java.sun.com/thread.jspa?threadID=742861&messageID=4258493
Thanks
Smile.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039582#4039582
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039582
19 years
[JBoss Seam] - Seam saying Datamodel saying row is Unavailable... WHY???
by tony.herstell@gmail.com
Given:
| @DataModel("displayableCategoryDatamodel")
| private LinkedHashSet<DisplayableCategory> displayableCategorySet;
|
| @DataModelSelection("displayableCategoryDatamodel")
| private DisplayableCategory selectedDisplayableCategory;
|
| @DataModel("keywordsDatamodel")
| private LinkedHashSet<Keyword> keywordsSet;
|
| @DataModelSelection("keywordsDatamodel")
| private Keyword selectedKeyword;
|
The first time a member is added to keywordsSet and a page is displayed using the Datamodel then I get this:
| Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: row is unavailable
| at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy113.isAdTypeComplete(Unknown Source)
| at sun.reflect.GeneratedMethodAccessor216.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
| at org.jboss.seam.interceptors.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:40)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
| at org.javassist.tmp.java.lang.Object_$$_javassist_7.isAdTypeComplete(Object_$$_javassist_7.java)
| ... 51 more
|
The initial set is created using:
| // Create the default set of Keywords.
| keywordsSet = new LinkedHashSet<Keyword>();
|
a member is added using
| public void addKeyword() {
| Keyword newKeyword = new Keyword();
| newKeyword.setKeyword(getNewKeyword());
| keywordsSet.add(newKeyword);
| }
|
Keyword is:
| @Entity // Defines this as an Entity that is a class mapped to the Datastore.
| @Name("keyword") // Name used within SEAM for an instance of this class.
| @Role(name="keywordSearchCriteria", scope=SESSION) // Another named instance of this class (used in the session scope).
| public class Keyword implements Serializable {
|
| private Long id;
| private Integer version; // Hiberante Docs: EJB3 sais Timestamp actually but recommend Integer
| private String keyword;
| private Administration administration;
|
| public Keyword() {
| }
|
| @Id
| @GeneratedValue
| public Long getId() {
| return id;
| }
|
| public void setId(Long id) {
| this.id = id;
| }
|
| @Version
| @Column(name="version4OptLock")
| public Integer getVersion() {
| return version;
| }
|
| public void setVersion(Integer version) {
| this.version = version;
| }
|
| @NotNull(message="required")
| @Length(max = 30)
| public String getKeyword() {
| return keyword;
| }
|
| public void setKeyword(String keyword) {
| this.keyword = keyword;
| }
|
| @Embedded
| public Administration getAdministration() {
| return administration;
| }
|
| public void setAdministration (Administration administration) {
| this.administration = administration;
| }
|
| @Override
| public String toString() {
| return getKeywordAsText(this);
| }
|
| public static String getKeywordAsText(Keyword keyword) {
| StringBuffer infoToReturn = new StringBuffer("Keyword");
| infoToReturn.append(" (Id => " + keyword.getId());
| infoToReturn.append(", Version => " + keyword.getVersion());
| infoToReturn.append(", Keyword => " + keyword.getKeyword());
| if (keyword.getAdministration() != null) {
| infoToReturn.append(", Administration --> " + keyword.getAdministration());
| }
| infoToReturn.append(")");
| return infoToReturn.toString();
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039580#4039580
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039580
19 years
[JBoss Seam] - Seam saying Datamodel saying row is Unavailable... WHY???
by tony.herstell@gmail.com
Given:
| @DataModel("displayableCategoryDatamodel")
| private LinkedHashSet<DisplayableCategory> displayableCategorySet;
|
| @DataModelSelection("displayableCategoryDatamodel")
| private DisplayableCategory selectedDisplayableCategory;
|
| @DataModel("keywordsDatamodel")
| private LinkedHashSet<Keyword> keywordsSet;
|
| @DataModelSelection("keywordsDatamodel")
| private Keyword selectedKeyword;
|
| |
| |
| | The first time a member is added to keywordsSet and a page is displayed using the Datamodel then I get this:
| |
| |
| | | Caused by: javax.ejb.EJBException: java.lang.IllegalArgumentException: row is unavailable
| | | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
| | | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
| | | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| | | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| | | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | | at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| | | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| | | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
| | | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| | | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| | | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| | | at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
| | | at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| | | at $Proxy113.isAdTypeComplete(Unknown Source)
| | | at sun.reflect.GeneratedMethodAccessor216.invoke(Unknown Source)
| | | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| | | at java.lang.reflect.Method.invoke(Method.java:597)
| | | at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
| | | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| | | at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
| | | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
| | | at org.jboss.seam.interceptors.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:40)
| | | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| | | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| | | at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
| | | at org.javassist.tmp.java.lang.Object_$$_javassist_7.isAdTypeComplete(Object_$$_javassist_7.java)
| | | ... 51 more
| | |
| |
| |
| | The initial set is created using:
| |
| | | // Create the default set of Keywords.
| | | keywordsSet = new LinkedHashSet<Keyword>();
| | |
| |
| | a member is added using
| |
| |
| | | public void addKeyword() {
| | | Keyword newKeyword = new Keyword();
| | | newKeyword.setKeyword(getNewKeyword());
| | | keywordsSet.add(newKeyword);
| | | }
| | |
| |
| | Keyword is:
| |
| | | @Entity // Defines this as an Entity that is a class mapped to the Datastore.
| | | @Name("keyword") // Name used within SEAM for an instance of this class.
| | | @Role(name="keywordSearchCriteria", scope=SESSION) // Another named instance of this class (used in the session scope).
| | | public class Keyword implements Serializable {
| | |
| | | private Long id;
| | | private Integer version; // Hiberante Docs: EJB3 sais Timestamp actually but recommend Integer
| | | private String keyword;
| | | private Administration administration;
| | |
| | | public Keyword() {
| | | }
| | |
| | | @Id
| | | @GeneratedValue
| | | public Long getId() {
| | | return id;
| | | }
| | |
| | | public void setId(Long id) {
| | | this.id = id;
| | | }
| | |
| | | @Version
| | | @Column(name="version4OptLock")
| | | public Integer getVersion() {
| | | return version;
| | | }
| | |
| | | public void setVersion(Integer version) {
| | | this.version = version;
| | | }
| | |
| | | @NotNull(message="required")
| | | @Length(max = 30)
| | | public String getKeyword() {
| | | return keyword;
| | | }
| | |
| | | public void setKeyword(String keyword) {
| | | this.keyword = keyword;
| | | }
| | |
| | | @Embedded
| | | public Administration getAdministration() {
| | | return administration;
| | | }
| | |
| | | public void setAdministration (Administration administration) {
| | | this.administration = administration;
| | | }
| | |
| | | @Override
| | | public String toString() {
| | | return getKeywordAsText(this);
| | | }
| | |
| | | public static String getKeywordAsText(Keyword keyword) {
| | | StringBuffer infoToReturn = new StringBuffer("Keyword");
| | | infoToReturn.append(" (Id => " + keyword.getId());
| | | infoToReturn.append(", Version => " + keyword.getVersion());
| | | infoToReturn.append(", Keyword => " + keyword.getKeyword());
| | | if (keyword.getAdministration() != null) {
| | | infoToReturn.append(", Administration --> " + keyword.getAdministration());
| | | }
| | | infoToReturn.append(")");
| | | return infoToReturn.toString();
| | | }
| | |
| | |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039579#4039579
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039579
19 years
[JBoss Seam] - Base Seam
by tony.herstell@gmail.com
Given base Seam (no addons at all)
| <f:facet name="header">
| <h:outputText value="#{messages.category_name}" />
| </f:facet>
|
The facet is not being shown.
???
| <h:dataTable var="eachDisplayableCategory"
| value="#{displayableCategoryDatamodel}"
| rendered="#{displayableCategoryDatamodel.rowCount>0}">
|
| <h:column rendered="#{eachDisplayableCategory.displayed and eachDisplayableCategory.selected}">
| <f:facet name="header">
| <h:outputText value="#{messages.category_name}" />
| </f:facet>
| <h:outputText
| value="#{messages[eachDisplayableCategory.immutableCategory.nameKey]}"
| disabled="#{eachDisplayableCategory.refined}" />
| </h:column>
| </h:dataTable>
|
| #Categories
| category_name=Catergory Name
|
I even did this:
| <h:outputText value="XXXXXXX#{messages.category_name}" />
|
and still nothing!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039578#4039578
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039578
19 years