[JBoss Seam] - Re: Select item from table and convertEntity
by brachie
So I figured it out: The Trinidad table is the problem here. If I use the standard h:dataTable or rich:datatable it works!!
<rich:dataTable styleClass="trTableDiv" id="personss" value="#{allePersonen}" var="pers">
| <rich:column>
| <f:facet name="header">Name</f:facet>
| <h:outputText
| value="#{pers.vorname} #{pers.nachname}" />
| </rich:column>
| <rich:column>
| <f:facet name="header">select</f:facet>
| <a:commandLink immediate="true" reRender="panelProjekt" action="#{projekt.setManager(pers)}" value="set">
| <s:conversationId />
| </a:commandLink>
| </rich:column>
| </rich:dataTable>
So here we have another little incompatibility with Trinidad?
But what happens when I click the set link is that the project record is immediately updated in the database. Is there a way to prevent this or do I have to set the flushMode of the conversation to manual?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122522#4122522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122522
18 years, 6 months
[JBossCache] - Re: Config Question
by lovelyliatroim
anonymous wrote :
|
| Definitely a limitation. Could you please create a feature request in JIRA for this and vote for it?
|
If i find out how or where to do this i will ;).
anonymous wrote :
| What could be your problem is how often your eviction thread kicks in. If you have enough memory to deal with temporary spikes before the eviction thread clears down unused nodes, I'd set this not to run too frequently.
|
Currently running every 5 seconds, will set it for a longer time period. Can you set the "wakeUpIntervalSeconds" on a region basis or is it a global cache setting??
anonymous wrote :
| I don't think it is replication, although you could tune it by using a ReplicationQueue (by default, even async replication happens immediately; the caller thread just doesn't wait for the response). See the user guide/sample configs for how to use the ReplicationQueue to defer this; it can be triggered either by time or size.
|
Hmmm im not sure we are talking about the same async, Iôm talking about the asynch mode with the cacheloader i.e JDBCCacheLoader nothing to do with replication. Ive actually set this cache as LOCAL so i have no replication going on what so ever. What I was asking was is there any way to get the asynch buffer for the JDBCCaheLoader to run more often/quicker to clear the buffer as quick as possible?? Reason i ask is that when i run say 5,000 writes and stop, i check the the DB to see how many records are written and i can see that over the space of one to three,four minutes it eventually will write all records in the DB. But it is this 3-4 minutes time lag that worries me, in production it wont get this 3-4 min break. Maybe it actually is running as fast as possible to clear the buffer but due to the fact it is writing images it actually takes this long!!
anonymous wrote :
| Also, if you are using the cache directly (i.e., packaged in your webapp or ear), you could even use 2.0.0/2.1.0 with JBoss AS 4.x. See http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheAsCompatibility
|
Thanks for the info, I already tried 4.2.X with JBossCache 2.0 and tried deploying as an MBean, this is a while back now, but i remember i did run into problems trying to deploy it as an MBean and when i did get it to work none of the statistics were getting updated in jmx-console. So was kind of put off the combination of 4.2.x with JbossCache 2.0 but i might have to venture back with this combination!
Thanks Manik,
LL
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122514#4122514
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122514
18 years, 6 months
[JBoss Seam] - Re: Select item from table and convertEntity
by brachie
"nickarls" wrote : Well, you could have two separate components:
|
| * selectOneMenu rendered when list.count < n
|
| * separate modal window with datatable, paginator, search and filtering
|
| I think you should be able to get both options working with a list of entities in the model. Then there is the question on how you should trigger the modal window. A separate button? An empty selectOneMenu with some sort of "on open trigger"?
I would have a little icon next to the input field which will trigger the popup with the person-selection table.
My main concern is not how to trigger the popup etc, it is how do I set the selected person directly to the entity (pass it to the project.setManager(Person p) method!
What I tried is (this is the person-select table in the popup):
<tr:table styleClass="trTableDiv" id="personss"
| rows="10" columnClasses="col"
| value="#{allPersons}" var="pers">
| <tr:column>
| <f:facet name="header">Name</f:facet>
| <h:outputText
| value="#{pers.vorname} #{pers.nachname}" />
| </tr:column>
| <tr:column>
| <f:facet name="header">select</f:facet>
| <a:commandLink reRender="panelProjekt" action="#{projekt.setManager(pers)}" value="set">
| <s:conversationId />
| </a:commandLink>
| </tr:column>
| </tr:table>
The problems here are the following:
- only the last person in the table is set to the project if I click a link. Why??
- the project record is immediately updated in the DB after I click the link (maybe here I could use flushMode="manual"?)
- this only works for the first click on the commandLink
Any help would be appreciated.
Alexander
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122508#4122508
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122508
18 years, 6 months