[OFBiz] Users - Users - Screen Widget Idea
Adrian Crum
adrianc at hlmksw.com
Wed Mar 16 19:43:31 EST 2005
I figured it out!
The screen widgets are working properly. The problem seems to be bsh
variable scoping. If I create variables in bsh scripts, they don't
"travel" from screen to screen. If I declare the variable in the widgets
XML file, THEN modify it in the bsh script, then the variable and the
changes I made travel from screen to screen.
Maybe David can shed some light on this.
Okay, I'm off to celebrate St Paddy's day.
Adrian Crum wrote:
> No - that's backwards.
>
> I'm reviewing the screen widget code to see what's going wrong.
>
> I'll be off Thursday. I'll get back to this on Friday.
>
>
> Chris Howe wrote:
>
>> have you tried what I suggested? changing <decorator-section-include
>> name="pre-template">
>> to
>>
>> <decorator-section name="pre-template"> in your
>> main-decorator screen
>>
>> and <decorator-section name="pre-template">
>>
>> to
>>
>> <decorator-section-include name="pre-template"
>> location="components://commmon/widgets/CommonScreens.xml">
>> for your screen that you want to run your script with.
>>
>>
>> ===================Original Message================
>>
>> Adrian Wrote:
>> It's not so much about complication as it is about
>> flexibility.
>>
>> I was able to use the power of JPublish to put entity
>> content in the page title. The implementation was not complicated,
>> but it works because JPublish is flexible.
>>
>> I'm trying to make the OFBiz screen widgets "master
>> template" as flexible as JPublish.
>>
>>
>> Chris Howe wrote:
>>
>>> If screen widgets actually work with the definition
>>
>>
>> being instead of
>>
>>> then it would still render your body screen
>>
>>
>> correctly because all of
>>
>>> your templates and scripts would have run by calling
>>
>>
>> main-decorator. I
>>
>>> think that it may have been incorrectly used from
>>
>>
>> the begining but
>>
>>> because none of the screens are complicated (for
>>
>>
>> screen usage) it's been
>>
>>> over looked. If it doesn't work this way, I have no
>>
>>
>> clue. I haven't
>>
>>> personally needed a screen to be that complicated
>>
>>
>> yet.
>>
>>>
>> ------------------------------------------------------------------------
>>
>>> Do you Yahoo!?
>>> Yahoo! Small Business - Try our new resources site!
>>
>>
>> <http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/>
>>
>>
>>>
>>>
>>>
>> ------------------------------------------------------------------------
>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.ofbiz.org
>>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>>
>>
>>
>>
>>
>> __________________________________ Do you Yahoo!? Yahoo! Sports - Sign
>> up for Fantasy Baseball. http://baseball.fantasysports.yahoo.com/
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.ofbiz.org
>> http://lists.ofbiz.org/mailman/listinfo/users
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>
More information about the Users
mailing list