[Design of JBoss Portal] - Re: Coordination work
by julien@jboss.com
it means that in the explicit case if you do not wire a public render parameter then it is never possible to set it with a value which means that the portlet will not work as expected.
"bdaw" wrote : "julien(a)jboss.com" wrote : one glitch I noticed is that in the explicit case, if a parameter is not explicit declared in a binding then it will simply never retain its state.
| |
| | It is visible in the explicit sample if you update PublicParametersPortletWindow1 juu1 parameter. The value is lost.
| |
| | I think it should rather remain private rather than being discarded, which would mean that in the explicit case this parameter is considered like a private parameters and is stored in the per window navigational state. Which would mean to add a Map<String, String[]> in the WindowNavigationalState to store such state.
| |
| | What do you think ?
|
| I remember we discussed it some time ago a bit. The thing is what behaviour would be expected. This would be the difference between FALLBACK and EXPLICIT strategy. In EXPLICIT param not wired is lost while in FALLBACK not.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166089#4166089
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166089
17 years, 8 months
[Design of JBoss Portal] - Re: Coordination work
by bdaw
"julien(a)jboss.com" wrote : one glitch I noticed is that in the explicit case, if a parameter is not explicit declared in a binding then it will simply never retain its state.
|
| It is visible in the explicit sample if you update PublicParametersPortletWindow1 juu1 parameter. The value is lost.
|
| I think it should rather remain private rather than being discarded, which would mean that in the explicit case this parameter is considered like a private parameters and is stored in the per window navigational state. Which would mean to add a Map<String, String[]> in the WindowNavigationalState to store such state.
|
| What do you think ?
I remember we discussed it some time ago a bit. The thing is what behaviour would be expected. This would be the difference between FALLBACK and EXPLICIT strategy. In EXPLICIT param not wired is lost while in FALLBACK not.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166083#4166083
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166083
17 years, 8 months
[Design of JBoss Portal] - Re: Coordination work
by bdaw
"julien(a)jboss.com" wrote : Is the alias implementation started (Map<QName, Set>) ? I haven't seen sample yet.
Yes. its in CoordinationConfigurator:
| /**
| * Set alias binding for a given page. If alias with given name already exists it will be overwritten
| *
| * @param page
| * @param aliasName
| * @param qnames
| * @throws IllegalCoordinationException
| */
| void setAliasBinding(Page page, String aliasName, Set<QName> qnames) throws IllegalCoordinationException;
|
| /**
| * Removes alias binding
| *
| * @param aliasInfo
| * @throws IllegalCoordinationException
| */
| void removeAliasBinding(AliasBindingInfo aliasInfo) throws IllegalCoordinationException;
|
| /**
| * @param page
| * @return collection of alias bindings connected to the given page
| */
| Collection<AliasBindingInfo> getAliasBindings(Page page);
So at the moment the alias String name maps Set in scope of page. Should the alias name be QName rather?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166080#4166080
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166080
17 years, 8 months
[Design of POJO Server] - Re: [jboss-metadata] No ResourceProcessor for JBoss50Creator
by scott.stark@jboss.org
Ok, the problem is that there is an inconsistency with the standard metadata class processors and the jboss extensions. The org.jboss.metadata.annotation.creator.jboss.AbstractComponentProcessor.process is calling processClass with the JBossEnvironmentRefsGroupMetaData.class as the processorType:
| public void process(RemoteEnvironmentRefsGroupMetaData metaData, Class<?> type)
| {
| // @Resources/@Resource
| processClass(metaData, type, JBossEnvironmentRefsGroupMetaData.class);
| ...
|
but the Resource*Processors are only registered for the standard metadata as most of the envionrment metadata is simply standard descriptor stuff. If this is changed to the RemoteEnvironmentRefsGroupMetaData:
| public void process(RemoteEnvironmentRefsGroupMetaData metaData, Class<?> type)
| {
| // @Resources/@Resource
| processClass(metaData, type, RemoteEnvironmentRefsGroupMetaData.class);
| ...
|
Then the session context shows up under ResourceEnvironmentReferenceMetaData as expected:
22:57:44,333 INFO [SessionContextAddedToMetadataUnitTestCase] org.jboss.metadata.javaee.spec.ResourceEnvironmentReferenceMetaData@38b735af{context}
Assign the issue to Emanuel or Alexy as there are issues with registering jboss specific type processors to deal with this correctly.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166068#4166068
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166068
17 years, 8 months