Hi Steven,

at the moment this is intended behavior by lack of a better solution. The problem is that for RIFE there is no way of knowing which element ID you mean when you point it to a destClass. The element can be included many times, with different IDs and in different sub-sites.

A solution that I now think of is that instead of just assuming that the element resides in the same sub-site, that logic could be changed to selecting the first element declared with the destination class as its implementation. What do you think? Would that work? It seems that it would cover most of the things that people expect when using it.

Best regards,

Geert

On 02 Jul 2006, at 05:59, Steven Grimm wrote:

After reading the responses to my message about annotation usage, I'm trying out putting all my flowlinks and datalinks in annotations so I can take advantage of the ability to refer to element classes rather than textual IDs.

This works fine some of the time, but when I refer to an element in another subsite, I get an exception. For example, if I have an element EditRecord in an authentication-required subsite that's referenced from the arrival page for a public subsite, I get

SEVERE: com.uwyn.rife.engine.exceptions.ElementIdNotFoundInSiteException: The element id '.Public.EditRecord' couldn't be found, it was referenced in the site with id '.Public.'. at com.uwyn.rife.engine.SiteBuilder.elementIdNotFound (SiteBuilder.java:1133) at com.uwyn.rife.engine.SiteBuilder.processDataLinks (SiteBuilder.java:1186) at com.uwyn.rife.engine.SiteBuilder.processData(SiteBuilder.java: 1611) at com.uwyn.rife.engine.SiteBuilder.processSubsites (SiteBuilder.java:1035) at com.uwyn.rife.engine.SiteBuilder.processData(SiteBuilder.java: 1608)

Is this a bug or the way it's intended to work? It seems less useful than it could be, but maybe there's a reason it's a good idea to restrict class references to the same subsite.

-Steve
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users


--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to