Re: looking at roller upgrade again

2023-04-27 Thread Lukasz Lenart
śr., 19 kwi 2023 o 09:37 Greg Huber napisał(a): > > > hack to satisfy Roller requirements > > Well I don't think its a hack, to have the variable name as part of the > id does not seem correct to me > > eg > > entryEdit > > > > ie the name would be : > > entry___tmp__saveDraft > > vs

Re: looking at roller upgrade again

2023-04-19 Thread Greg Huber
hack to satisfy Roller requirements Well I don't think its a hack, to have the variable name as part of the id does not seem correct to me eg     entryEdit     ie the name would be : entry___tmp__saveDraft vs entry_entryEdit_saveDraft calculate ID based on action AND method at the sa

Re: looking at roller upgrade again

2023-04-19 Thread Lukasz Lenart
śr., 19 kwi 2023 o 09:19 Greg Huber napisał(a): > clickById("entry_%{#mainAction}!publish") > > This patch fixes the format by calculating the action first: > > https://github.com/apache/struts/commit/d7cf72c92eb84437eb9794b56c2525b389cf7900 This is really a hack to satisfy Roller requirements, b

Re: looking at roller upgrade again

2023-04-19 Thread Greg Huber
@Greg Huber is the current approach ok? https://github.com/apache/struts/pull/678 This works but not really related to this formatting issue. As there is nothing wrong with Struts, it never formatted it correctly in the first place, which can be seen from the test clickById : clickById("entry

Re: looking at roller upgrade again

2023-04-18 Thread Lukasz Lenart
I'm sorry Yasser if you took this personally - escape logic has changed and on first thought that was the cause. After investigating the thing deeper I found it isn't just this but also missing support for evaluation of ID which bases on action or method. Previously ID was evaluated on set (in the

Re: looking at roller upgrade again

2023-04-15 Thread Yasser Zamani
from Struts internal behavior. Best, Yasser. From: Greg Huber Sent: Saturday, April 15, 2023 3:08 PM To: dev@struts.apache.org Subject: Re: looking at roller upgrade again I think it was always wrong as the test is checking for : entry_%{#mainAction}!pu

Re: looking at roller upgrade again

2023-04-15 Thread Greg Huber
I think it was always wrong as the test is checking for : entry_%{#mainAction}!publish clickById("entry_%{#mainAction}!publish") On 14/04/2023 19:17, Yasser Zamani wrote: Thank you for the explanation Greg. Yes I agree that previously it was looking better. Currently am wondering how previous

Re: looking at roller upgrade again

2023-04-14 Thread Yasser Zamani
Thank you for the explanation Greg. Yes I agree that previously it was looking better. Currently am wondering how previous Struts was generating the id from an evaluated name! Because as you see below, Struts is and was keeping name property unchanged via introducing a local var named name:

Re: looking at roller upgrade again

2023-04-14 Thread Yasser Zamani
On 4/3/2023 11:18 AM, Lukasz Lenart wrote: The change has been introduced here [1] and the problem is that it replaces any non-alphanumeric character with "_". Also it works on an unevaluated version of the "name" attribute (in case if the "id" attribute is not defined). I think this is a bug

Re: looking at roller upgrade again

2023-04-12 Thread Greg Huber
There is nothing wrong with struts. There is a selenium test in roller that checks on the id clickById("entry_%{#mainAction}!publish"); it now has: entrymainAction__publish ie it escapes %{#}! with spaces. To match other tags, it should evaluate %{#mainAction} ie using the form below:

Re: looking at roller upgrade again

2023-04-12 Thread Yasser Zamani
Sorry I didn't get what the problem exactly is. 1. Was your app depended to Struts internal behavior of id generation and so your app is broken now? 2. Or no, Struts itself is broken now by my change? On 4/11/2023 10:16 AM, Greg Huber wrote: More housekeeping, the id on the form tag never su

Re: looking at roller upgrade again

2023-04-10 Thread Greg Huber
More housekeeping, the id on the form tag never supported %{..} on the action attribute. ie action="%{#mainAction}!saveDraft" On 10/04/2023 20:37, Yasser Zamani wrote: Hi there, please see inline... On 4/3/2023 11:18 AM, Lukasz Lenart wrote: The change has been introduced here [1] and the pro

Re: looking at roller upgrade again

2023-04-10 Thread Yasser Zamani
Hi there, please see inline... On 4/3/2023 11:18 AM, Lukasz Lenart wrote: The change has been introduced here [1] and the problem is that it replaces any non-alphanumeric character with "_". Also it works on an unevaluated version of the "name" attribute (in case if the "id" attribute is not def

Re: looking at roller upgrade again

2023-04-10 Thread Lukasz Lenart
pon., 10 kwi 2023 o 09:57 Greg Huber napisał(a): > > Modified version here > > https://github.com/gregh3269/struts/tree/WW-5302-unevaluated-id > > > >myConfig > action="%{#mainAction}!save" /> > method="save" /> > > id="myConfig_myConfig_save"> I missed that you do not use the "n

Re: looking at roller upgrade again

2023-04-10 Thread Greg Huber
Modified version here https://github.com/gregh3269/struts/tree/WW-5302-unevaluated-id   myConfig   action="%{#mainAction}!save" />   method="save" />   id="myConfig_myConfig_save"> On 09/04/2023 15:16, Lukasz Lenart wrote: niedz., 9 kwi 2023 o 12:20 Greg Huber napisał(a): Testing the

Re: looking at roller upgrade again

2023-04-10 Thread Greg Huber
branch WW-5302-unevaluated-id Seems the same to me.  Note the action has a variable: %{#mainAction}!save All it seems to be doing is escaping action: %{#mainAction}!save : %{#mainAction}!save ___mainAction}_save On 09/04/2023 15:16, Lukasz Lenart wrote: niedz., 9 kwi 2023 o 12:20 Greg Huber

Re: looking at roller upgrade again

2023-04-09 Thread Lukasz Lenart
niedz., 9 kwi 2023 o 12:20 Greg Huber napisał(a): > Testing the branch it is still the same? Please try now Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.

Re: looking at roller upgrade again

2023-04-09 Thread Greg Huber
Testing the branch it is still the same? myConfig id="myConfigmainAction__save" > What we want is: id="myConfig_myConfig_save" > ## It needs this from previous email // determine actual action ActionMapping mapping = new ActionMapping(); mapping.setName(findString(action)

Re: looking at roller upgrade again

2023-04-09 Thread Lukasz Lenart
PR is ready https://github.com/apache/struts/pull/678 - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org

Re: looking at roller upgrade again

2023-04-09 Thread Lukasz Lenart
niedz., 9 kwi 2023 o 10:07 Greg Huber napisał(a): > > > > name="entryEdit!saveDraft"/> > > I guess what we want. Great, thanks for reporting this issue :) https://issues.apache.org/jira/browse/WW-5302 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --

Re: looking at roller upgrade again

2023-04-09 Thread Greg Huber
I guess what we want. ### In the FormButton populateComponentHtmlId(Form form) it evaluates the action based on the text rather than the "actual" action. If the action is determined from the mapping it renders correctly. See "// determine actual action" in code below entryEdit renders

Re: looking at roller upgrade again

2023-04-08 Thread Lukasz Lenart
What about such an approach? The ID is generated based on the evaluated version of the name attribute. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org

Re: looking at roller upgrade again

2023-04-03 Thread Lukasz Lenart
pon., 3 kwi 2023 o 10:26 Greg Huber napisał(a): > > Thanks. > > There is a selenium test in roller that checks on the id > > clickById("entry_%{#mainAction}!publish"); > > it now has: > > entrymainAction__publish" > > I guess its a matter of modifying the test, as %{ characters etc may not > b

Re: looking at roller upgrade again

2023-04-03 Thread Greg Huber
Thanks. There is a selenium test in roller that checks on the id clickById("entry_%{#mainAction}!publish"); it now has: entrymainAction__publish" I guess its a matter of modifying the test, as %{ characters etc may not be desirable the id field? On 03/04/2023 08:48, Lukasz Lenart wrote

Re: looking at roller upgrade again

2023-04-03 Thread Lukasz Lenart
The change has been introduced here [1] and the problem is that it replaces any non-alphanumeric character with "_". Also it works on an unevaluated version of the "name" attribute (in case if the "id" attribute is not defined). I think this is a bug and I'm not sure why the "escape" method has bee