[JBoss JIRA] Updated: (WELDX-37) Java based DSL configuration of BeanDeploymentArchive
by Pete Muir (JIRA)
[ https://jira.jboss.org/jira/browse/WELDX-37?page=com.atlassian.jira.plugi... ]
Pete Muir updated WELDX-37:
---------------------------
Fix Version/s: (was: 1.0.0.Beta1)
> Java based DSL configuration of BeanDeploymentArchive
> -----------------------------------------------------
>
> Key: WELDX-37
> URL: https://jira.jboss.org/jira/browse/WELDX-37
> Project: Weld Extensions
> Issue Type: Feature Request
> Reporter: Takeshi Kondo
> Assignee: Takeshi Kondo
> Priority: Minor
> Attachments: dsl-configuration-impl-testcase.patch, dsl-configuration-impl.patch, dsl-configuration-interface.patch, dsl-configuration-test-case.patch, dsl-test.patch, dsl.patch
>
>
> In test environment ,I frequently change configuration.
> ClssLoader scan is convenience , but it is laggardly and not flexible.
> Alternatively , I'd created new BeanDeploymentArchive which loads Java based DSL configuration.
> sample is as follows.
> -------
> > Java based DSL Configuration
> class TestBeanModule extends BeanModuleBase
> {
> @Override
> protected void configure()
> {
> bean(TestBean.class);
> }
> }
> -------
> > TestCase
> @Test(groups = "bootstrap")
> public void testBeanModule()
> {
> new ModuleTest(new TestBeanModule())
> {
> @Override
> protected void test()
> {
> BeanManagerImpl manager = CurrentManager.rootManager();
> assert manager.getInstanceByType(TestBean.class) != null;
> }
> };
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] Created: (WELDRAD-20) Id property not found on type String (#{widgets} -> #widgets in jsf page)
by Andy Gibson (JIRA)
Id property not found on type String (#{widgets} -> #widgets in jsf page)
-------------------------------------------------------------------------
Key: WELDRAD-20
URL: https://jira.jboss.org/jira/browse/WELDRAD-20
Project: Weld Archetypes
Issue Type: Bug
Affects Versions: 1.0.0.Beta1
Environment: Windows XP & 7, maven 2.2.1, Java 1.6
Reporter: Andy Gibson
When you create the jee archetype project (with persistence unit), the expression #{widgets} in the datatype ends up as #widgets in the final page giving the users the error message "Id property not found on type String".
It's really weird because no other expressions get altered like this, and even if I change it to a completely different name it gets changes (#{someItems} becomes #someItems). I even tried referencing it outside of the data table and its still a problem.
To work around the problem, just change #widgets to #{widgets}. Of course, it breaks the demo out of the gate.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months