Aem 6.4 coral UI 3 touchui dialog default values not working

Avatar

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
sr508
Level 3

23-04-2019

Hi,

My touchui value property is not working for textfields.

In the same way selected property is not working for the touchui select field.

I am using arm 6.4 and coralui3.

When I debug the code , when ever the cmp.getvalue().Val() is returning null and cmp.getvalue().isselected() methods is always returning false.

So if any cmp.getvalue().somemethod() the functionality is not working.

I have overridden the global.jsp and it is missing the componenthelper import.

The issue is intermittent.

Does the dialog structure causes the issues?

Where can I validate the dialog in aem?

How can I resolve the issue??

Replies

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

389 likes

Total Posts

869 posts

Correct reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

389 likes

Total Posts

869 posts

Correct reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

23-04-2019

Have you tried installing SP3? There was a known issue with default values on 6.4.2

Avatar

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
sr508
Level 3

23-04-2019

Hi jaideep,

My instance doesn't have any SP installed.

It is 6.4.0.

Will install SP3 and try.

Is there any way to validate my dialog structure as well??

Avatar

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

197 likes

Total Posts

243 posts

Correct reply

75 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

197 likes

Total Posts

243 posts

Correct reply

75 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile
Ravi_Pampana
MVP

23-04-2019

Hi,

If possible try using cq:template node for default values 

AEM Developer Learning : cq:template and cq:templatePath Properties of a Component in AEM

Avatar

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
sr508
Level 3

23-04-2019

Hi Ravi,

Tried with cq:template , it is working fine but some components still have the issue.

Does cq:template won't work if the dialog creation is not proper say structure or dialog tree etc.

Avatar

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

197 likes

Total Posts

243 posts

Correct reply

75 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

197 likes

Total Posts

243 posts

Correct reply

75 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile
Ravi_Pampana
MVP

23-04-2019

Hi,

Is it possible to share your _cq_dialog.xml to verify if anything wrong with the dialog creation.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

23-04-2019

Have you going through this document. I have never seen any issues - esp with Select fields.

Building Experience Manager Components using Granite/Coral Resource Types

Avatar

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
sr508
Level 3

23-04-2019

Mine is not a HTL component.

It's a jsp with custom global.jsp .

Would that make any difference??

Avatar

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

197 likes

Total Posts

243 posts

Correct reply

75 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

197 likes

Total Posts

243 posts

Correct reply

75 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile
Ravi_Pampana
MVP

23-04-2019

I dont think using custom global.jsp and using jsp instead of htl will have any effect on default value for dialog or using cq:template. Please check your _cq_dialog.xml structure is correct as per the link shared by smacdonald2008​ above.

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

23-04-2019

Using JSP as opposed to HTL will not make any diff to the component dialog.

I strongly recommend that you go through the doc I posted. You will learn more about the GRANITE/CORAL resource types and more about HOW TO work with HTL - which reflects best practices.